<?php

require_once '../api/engine/Template.php';
require_once '../api/engine/MarkdownRenderer.php';
require_once 'contents/AboutMeContents.php';

require_once 'style.php';

use PolarisbackEndFrameRe\api\engine\MarkdownRenderer;
use PolarisbackEndFrameRe\api\engine\Template;

class AboutMeRender
{
    public function __construct()
    {
        $aboutMe = file_get_contents("template/About.html");
        $template = new Template($aboutMe);
        $main_title = style()['website_top_title'];
        $markdown = new MarkdownRenderer();
        $htmloutput = $markdown->parse(contents());
        $template->assign("title", $main_title . " -- " . "AboutMe");
        $template->assign("contents", $htmloutput);

        echo $template->render();
    }
}

new AboutMeRender();
